import Https2 from "@/utils/Https2";

export const queryPageDataReq = async (params) =>
  await Https2.post("/merchant/bookclassflowtemplate/templateList", params);

export const queryLinkListPageDataReq = async (params) =>
  await Https2.post("/merchant/bookclassflowtemplate/linkList", params);

export const addItemReq = async (params) =>
  await Https2.post("/merchant/bookclassflowtemplate/addLink", params);
export const updateItemReq = async (params) =>
  await Https2.post("/merchant/bookclassflowtemplate/updateLink", params);
export const deleteItemReq = async (params) =>
  await Https2.post("/merchant/bookclassflowtemplate/deleteLink", params);

export const queryItemInfoReq = async (params) =>
  await Https.post("/merchant/bookclassflowtemplate/linkDetail", params);

export const toggleStateReq = async (params) =>
  await Https.get("/tables", params);
